<?php

use Illuminate\Database\Seeder;

class SettingHomeImageTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $number = \App\Models\SettingHomeImage::INIT_DATA_NUMBER;
        $insertData = array();
        for($i = 0; $i < $number; $i++){
            $data = array();
            $data['img_name'] = '';
            $data['is_show'] = 0;
            $insertData[] = $data;
        }
        DB::table('setting_home_images') -> insert($insertData);
    }
}
